package com.glasses.dao;


import com.glasses.entity.Indent;
import com.glasses.orm.base.baseImp.BaseDaoInterface;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2018/1/24.
 */
public interface OrderDao extends BaseDaoInterface {

    /**
     * 删除订单
     * @param map
     * @throws Exception
     */
    int deleteOrder(Map map) throws Exception;

    int insertListIndent(List<Indent> indentList) throws Exception;

    /**
     * 获得订单状态以及数量
     * @param map
     * @return
     * @throws Exception
     */
    Map getOrderCountStatus(Map map) throws Exception;

    /**
     * 查询商品状态对应的数量
     * @param map
     * @return
     * @throws Exception
     */
    Map getCommodityStatusCount(Map map) throws Exception;
}
